When we say that the student numbers in this class is in a list we meat that each of our student number is placed in a one-to-one and on-to list, where it is countable because each one of our student number only appears once and it is labeled in order. This is an example of how a list work and how its counted, where each value in the list refers to a natural number in order to show its position in the list, and how many value is in the list when we want to count it. This implies that Natural numbers is countable due to Naturals are built into the concept of a list, where it shows the position of each Natural number in the list. Further more we can expand this idea to show that not only Natural numbers are countable, but any number that is made up with Natural number is also countable, like Rationals where its n/m (n,m are both Naturals) or a list that is made up with Natural number+2 (skip 2 values each time).
This idea of countable list show that Real numbers is not countable, implies any lists made up of it is also not countable. Cantor's example shows that some Real number is been placed into a list, and by adding 1 to each position of the list we can create a completely new number that doesn't exist in the current list, proving Real number list is not countable.
We can also use Cantor's example to prove that we can't make function in Python where is can predict which function with which input will halt or loop. Due to the amount of function as input and the amount of value is also infinite therefore by Cantor's example when we plug in all the values into a list we can always create a new set of halt or loop output that is unique, implies it is not countable, implies can't compute in Python because Python only works with list that is countable.
from course note chapter 5 pg 6. |